package com.apolo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2018/2/26.
 */

@RestController
public class HelloController {

    @Autowired
    private GirlProperties girlProperties;

/*    @RequestMapping(value = "hello",method = RequestMethod.GET)*/
    @GetMapping("/hello")
    public String say(@RequestParam(value = "id",required = false,defaultValue = "100") Integer id){
        //return "Hello Spring boot ! CupSize is "+girlProperties.getCupSize()+" age is "+girlProperties.getAge();
        //return "index";
        return "Id = "+id;
    }
}
